[pusbullet] add a note how to register a new device

Christian Berendt 10 年之前
父节点
当前提交
6d916534ae
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/models/agents/pushbullet_agent.rb

+ 4 - 0
app/models/agents/pushbullet_agent.rb

@@ -14,6 +14,10 @@ module Agents
14 14
 
15 15
       `curl -u <your api key here>: https://api.pushbullet.com/api/devices`
16 16
 
17
+      To register a new device run the following command:
18
+
19
+      `curl -u <your api key here>: -X POST https://api.pushbullet.com/v2/devices -d nickname=huginn -d type=stream`
20
+
17 21
       Put one of the retured `iden` strings into the `device_id` field.
18 22
 
19 23
       You can provide a `title` and a `body`.